$(document).ready(function () {

  		var pos;
        var speed = 3.0;
        var pos_initial;
 
        startAnim = function() {
            var e = $('#marquee-wrapper');
            pos_initial = e.width();//e.clientWidth + 2;
            pos = pos_initial;
            setInterval('anim()', 50);
        }
        anim = function() {
            var e = $('#marquee');
            e.css("visibility", "visible");
            e.css("left", Math.floor(pos) + "px");
            pos = pos - speed;
            if (pos <-e.width()) pos = pos_initial;
        }

		var e = $('#marquee-wrapper');
		startAnim();
});